import request from '@/utils/request'

// 查询分货断码策略列表
export function listAllocationBrokenSizeStrategy(query) {
  return request({
    url: '/productAllocation/AllocationBrokenSizeStrategy/list',
    method: 'get',
    params: query
  })
}

// 查询分货断码策略详细
export function getAllocationBrokenSizeStrategy(id) {
  return request({
    url: '/productAllocation/AllocationBrokenSizeStrategy/' + id,
    method: 'get'
  })
}

// 新增分货断码策略
export function addAllocationBrokenSizeStrategy(data) {
  return request({
    url: '/productAllocation/AllocationBrokenSizeStrategy',
    method: 'post',
    data: data
  })
}

// 修改分货断码策略
export function updateAllocationBrokenSizeStrategy(data) {
  return request({
    url: '/productAllocation/AllocationBrokenSizeStrategy',
    method: 'put',
    data: data
  })
}

// 删除分货断码策略
export function delAllocationBrokenSizeStrategy(id) {
  return request({
    url: '/productAllocation/AllocationBrokenSizeStrategy/' + id,
    method: 'delete'
  })
}
